package light.head.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
@Entity
@Table
public class WorkGuide implements Serializable{
	private static final long serialVersionUID = 2424630889179409602L;
	private Integer code;					//流水号
	private String name;					//办事指南机构名称
	private Integer pc;						//项目编号
	private String pn;						//父项目名称
	private Integer cu;						//创建人
	private Date ct;						//创建时间
	private Boolean deleted;				//是否删除
	private WorkGuideDetail wgd;			//办事指南详细
	private List<WorkGuide> sonList;		//子类别列表
	private List<WorkGuideDetail> list;		//详细集合
	

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column
	public Integer getCode() {
		return code;
	}
	@Column
	public String getName() {
		return name;
	}
	@Column
	public Integer getPc() {
		return pc;
	}
	@Column
	public String getPn() {
		return pn;
	}
	@Column
	public Integer getCu() {
		return cu;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(updatable = false, nullable = false)
	public Date getCt() {
		return ct;
	}
	@Column
	public Boolean getDeleted() {
		return deleted;
	}
	@Transient
	public WorkGuideDetail getWgd() {
		return wgd;
	}
	@Transient
	public List<WorkGuide> getSonList() {
		return sonList;
	}
	@Transient
	public List<WorkGuideDetail> getList() {
		return list;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setPc(Integer pc) {
		this.pc = pc;
	}
	public void setPn(String pn) {
		this.pn = pn;
	}
	public void setCu(Integer cu) {
		this.cu = cu;
	}
	public void setCt(Date ct) {
		this.ct = ct;
	}
	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}
	public void setWgd(WorkGuideDetail wgd) {
		this.wgd = wgd;
	}
	public void setSonList(List<WorkGuide> sonList) {
		this.sonList = sonList;
	}
	public void setList(List<WorkGuideDetail> list) {
		this.list = list;
	}
	
	
}
